﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="LGSVR_WEB._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>深圳市苓贯科技有限公司</title>
    <link href="/skins/default/css/Common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
        var down = false;
        function UpMouse(who) {
            if (down) {
                if (who.style.display == "none")
                {
                    who.style.display = "";
                }
                var w = parseInt(who.style.width) + event.clientX - startX;
                if (w <= 0) {
                    w = 1;
                }
                who.style.width = w;

                var divW = w;
                if (divW < 0) {
                    divW = 0;
                }
                document.all.divLeft.style.width = divW;
            }
            down = false;
            document.body.onselectstart = null;
            shadow.style.display = "none";

            divTmp.style.width = 0;
            divTmp.style.height = 0;
        }
        var startX = 0, startY = 0, startLeft = 0, startTop = 0;

        function MoveMouse() {
            var move = document.all.move;
            if (down) {
                shadow.style.width = move.style.width;
                shadow.style.height = divLeft.style.height;
                shadow.style.display = "";
                //alert(startLeft)11;
                shadow.style.left = startLeft + event.clientX - startX;
                shadow.style.top = startTop + 50;
            }
        }
        function DownMouse() {
            if (event.srcElement.id == "move") {
                down = true;
                startX = event.clientX;
                startY = event.clientY;

                startLeft = document.all.move.offsetLeft;
                startTop = document.all.move.offsetTop;
                document.body.onselectstart = ForbidSelect;

                divTmp.style.width = "100%";
                divTmp.style.height = "100%";
            }
        }

        function ForbidSelect() {
            document.selection.empty();
        }



        function Init() {
            document.all.tblMain.style.height = document.documentElement.clientHeight - 60;
            document.all.divLeft.style.height = document.documentElement.clientHeight - 62;
            document.all.divMain.style.height = document.documentElement.clientHeight - 85;
        }


        var dispLeft = true;
        function HideShowLeft() {
            if (document.all.left.style.display == "none") {
                document.all.left.style.display = "";
                 document.getElementById("Image2").style.display = "none";
                document.getElementById("Image3").style.display = "";
            }
            else {
                document.all.left.style.display = "none";
               document.getElementById("Image2").style.display = "";
                document.getElementById("Image3").style.display = "none";
            }
        }
        //-->
        function showBg(who) {
            var td = who.parentElement;
            td.style.backgroundImage = "url(/skins/default/images/anniu.gif)";
            td.style.backgroundRepeat = "no-repeat";
        }

        function hideBg(who) {
            var td = who.parentElement;
            td.style.backgroundImage = "";
        }

        function resize(obj) {
            if (topfrm.style.display == "none") {
                topfrm.style.display = "";
                left.style.display = "";
                move.style.display = "";
                eval("document.getElementById(obj).src='/skins/default/images/ico/max.jpg'");
            }
            else {
                topfrm.style.display = "none";
                left.style.display = "none";
                move.style.display = "none";
                eval("document.getElementById(obj).src='/skins/default/images/ico/Mus.jpg'");
            }
        }

        function setCaption(imgsrc, module) {
            if (imgsrc == '') {
                eval("document.getElementById('moduleimg').src='/skins/default/images/ico/folderopen.gif'");
            }
            else {
                eval("document.getElementById('moduleimg').src=imgsrc");
            }

            caption.innerHTML = module;
            caption.title = module;
        }
   
   
    </script>
</head>
<body style="margin: 0px; height: 100%; overflow: hidden;" scroll="no" onload="Init()"
    onresize="Init()" onmousedown="DownMouse();" onmousemove="MoveMouse()" onmouseup="UpMouse(document.all.left)">
    <table border="0" cellpadding="0" cellspacing="0" style="display: block; width: 100%;
        height: 50px; background-image: url(/skins/default/images/logo-bg.jpg);" id="topfrm">
        <tr>
            <td style="width: 250px;">
                <img id="Image1" src="/skins/default/images/logo.gif" style="border-width: 0px;" />
            </td>
            <td style="vertical-align: middle;">
                <table id="dlModule" cellspacing="0" border="0" style="height: 42px; border-collapse: collapse;">
                    <tr>
                        <td align="center" style="width: 88px;">
                            <a href='left.aspx?ParentID=1' target="frameLeft" onmouseover="showBg(this)" onmouseout="hideBg(this)">
                                <img src="/skins/default/images/Module/1ico7.gif" align="absmiddle" />节目管理 </a>
                        </td>    
                        <td align="center" style="width: 88px;">
                            <a href='left.aspx?ParentID=2' target="frameLeft" onmouseover="showBg(this)" onmouseout="hideBg(this)">
                                <img src="/skins/default/images/Module/icons_28.gif" align="absmiddle" />终端管理 </a>
                        </td>
                         <td align="center" style="width: 88px;">
                            <a href='left.aspx?ParentID=3' target="frameLeft" onmouseover="showBg(this)" onmouseout="hideBg(this)">
                                <img src="/skins/default/images/Module/1ico9.gif" align="absmiddle" />系统管理 </a>
                        </td>
                       <td>
                            &nbsp;&nbsp;
                        </td>
                        <td align="center" style="width: 88px;">
                            <a href='javascript:window.parent.navigate("Logout.aspx");' target="frameLeft"
                                onmouseover="showBg(this)" onmouseout="hideBg(this)">
                                <img src="/skins/default/images/ico/zhuxiao.gif" align="absmiddle" />
                                退出系统</a>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
            <td align="right">
            </td>
        </tr>
    </table>
    <table id="tblMain" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr>
            <td id="left" style="width: 200px;" valign="top" align="center">
                <div id="divLeft" style="overflow: auto; width: 200px; height: 500px; background-color: #F6F9FE;
                    z-index: 1">
                    <iframe id="frameLeft" style="width: 100%; height: 90%" frameborder="no" name="frameLeft">
                    </iframe>
                </div>
            </td>
            <td id="move" style="width: 5px; cursor: e-resize; text-align: center; border: #cccccc 1px solid;
                background-color: #e0e0e0">
                <table border="0" cellpadding="0" cellspacing="0" style="background-color: White;
                    height: 30px; width: 5px; cursor: hand;" onclick="HideShowLeft();">
                    <tr>
                        <td>
                            <img id="Image2" src="/skins/default/images/right_arrow.gif" style="border-width: 0px; display:none;" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img id="Image3" src="/skins/default/images/left_arrow.gif" style="border-width: 0px;" />
                        </td>
                    </tr>
                </table>
            </td>
            <td id="tdMain" style="border: 0px; width: 100%; height: 100%;">
                <table style="border: 0px; width: 100%; height: 100%;">
                    <tr>
                        <td id="td1" style="border: 0px; width: auto; height: auto;">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-image: url(/skins/default/images/right_bg.jpg);
                                height: 18px">
                                <tr>
                                    <td style="background-color: #f5f7f9; white-space: nowrap; vertical-align: middle;
                                        border-left: #cccccc 1px solid; height: 18px; border-top: #cccccc 1px solid;"
                                        valign="middle">
                                        &nbsp;<img id="moduleimg" src="/skins/default/images/ico/folderopen.gif" style="vertical-align: middle;"
                                            alt="" />
                                        <span id="caption" style="vertical-align: middle;"></span>
                                    </td>
                                    <td style="background-color: #f5f7f9; text-align: right; border-right: #cccccc 1px solid;
                                        border-top: #cccccc 1px solid;">
                                        <!--<img id="Image4" src="..//skins/default/images/ico/help.gif" style="border-width:0px;" />&nbsp;-->
                                        <img id="fullscreen" onclick="resize(&#39;fullscreen&#39;)" onmouseover="this.src=&#39;/skins/default/images/ico/max2.jpg&#39;"
                                            onmouseout="this.src=&#39;/skins/default/images/ico/max.jpg&#39;" src="/skins/default/images/ico/max.jpg" style="border-width: 0px;
                                            vertical-align: middle; cursor: hand;" />&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div id="divMain" style="border-right: #cccccc 1px solid; border-top: #cccccc 1px solid;
                                            border-left: #cccccc 1px solid; border-bottom: #cccccc 1px solid;">
                                            <iframe id="frameMain" style="width: 100%; height: 100%;" scrolling="yes" frameborder="0"
                                                name="frameMain"></iframe>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="shadow" style="z-index: 20; left: 0px; width: 0px; position: absolute; top: 0px;
        height: 0px; background-color: #bacad6">
    </div>
    <div id="divTmp" style="filter: alpha(opacity=0); left: 0px; width: 0px; position: absolute;
        top: 0px; height: 0px; background-color: white">
    </div>
</body>
<script type="text/javascript">

    document.getElementById("frameLeft").src = "left.aspx";
   
</script>
</html>
